﻿using System.Collections.Generic;
using System.Threading.Tasks;
using BCEntity.TMS.MallInterface.MallOrderAddress;

namespace BCData.TMS.MallInterface.MallOrderAddress
{
    public interface IMallOrderAddressData
    {
        Task<bool> DeleteAsync(long mallOrderAddressId);
        Task<bool> DeleteAsync(string mallOrderNo);
        Task<MallOrderAddressEntity> GetEntityAsync(long mallOrderAddressId); 
        Task<IEnumerable<MallOrderAddressEntity>> GetAddressListAsync(string mallOrderNo);
        Task<(IEnumerable<MallOrderAddressEntity>, int)> GetListAsync(int pageIndex, int pageSize);
        Task<MallOrderAddressEntity> InsertAsync(MallOrderAddressEntity entity);
        Task<MallOrderAddressEntity> UpdateAsync(MallOrderAddressEntity entity);
    }
}